<script>
import headerPage from "@/components/headerPage.vue";
import srarchWindow from "@/components/srarchWindow.vue";
// import MapPage from "@/views/mapPage.vue";
import {addpl, aug, comreviews, getzhiwei} from "@/api";

export default {
  name: "detailPage",
  components: {headerPage, srarchWindow},
  data() {
    return {
      loading: true,
      // 条数
      total: '',
      // 分页器
      querya: {
        pageSize: 20,
        pageNum: 1
      },
      // 验证码
      captchaImg: '',
      userCaptcha: '',
      captchaText: '',
      showMessage: false,
      message: '',
      // 添加评论
      formMap: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: '',
        youwork: ''
      },
      commentList: {
        value: 0
      },
      value: 3.7,
      // 接口传递数值
      datalist: {
        pageNum: 1,
        pageSize: 20,
        companyId: ''
      },
      // 获取的职位
      // zhiweiList: '',
      comments: [
        {
          _id: "first0", // 评论id
          date: "2022.09.01", //创建日期
          username: "孤城浪人", //评论人
          userId: "1",
          avatarUrl:
              "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png", //头像地址
          favour: ["1", "2", "3"], //点赞的用户id
          content: "评论的内容", //评论内容
          replyInfo: [
            //回复的内容
            {
              _id: "sec0", // 当前此条回复的id
              date: "2022.09.01", //创建日期
              replyName: "孤城浪人", //回复的对象
              username: "孤城浪人", //评论人
              userId: "1",
              favour: ["2", "3", "4"],
              avatarUrl:
                  "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
              content: "博主厉害了" //回复的内容
            }
          ]
        }
      ], // 获取得到的评论
      context: "", // 评论内容
      replyContext: "", //一级评论回复
      isShowSec: "", //是否显示次级回复框
      isClickId: "", //记录点击回复的评论id
      userId: "1", // 浏览器指纹
      username: "孤城浪人", //你的用户名
      firstIdx: 1,
      secIdx: 1,
      avatarUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
      //新增评论
      addList: {
        userId: '',
        username: '',
        companyId: '',
        companyRating: '',
        spitDetails: '',
        youWork: ''
      },
      // value: 3.7,
      form: {
        companyRating: Number,
        enterpriseAddress: '',
        //曾任职位
        youWork: '',
        // 企业名称
        companyName: '',
        // 存在问题
        thereProblem: '',
        // 详情描述
        detailedDescription: '',
        // 工资情况
        wage: '',
        // 社保情况
        socialSecurity: '',
        //加班情况
        overtimesSituation: '',
        //单双休情况
        weekendsClosed: '',
        // 公积金情况
        reserveFund: '',
        localArea: '',
      },
      // 获取职位
      zhiweiList: '',
      //评论列表
      // commentList: []
      addValue: 0,
      augValue: 0
    }
  },
  watch: {},
  created() {
    // 获取平均分
    aug(this.$route.query.companyId).then(res => {
      this.augValue = Number((res.data / 2).toFixed(2))
    })
    this.generateCaptcha();
    //页面加载时 获取评论
    // 获取全部职位
    getzhiwei().then(res => {
      this.zhiweiList = res.data
    })
    this.form.companyName = this.$route.query.companyName
    // this.value = this.$route.params.companyRating
    this.form = this.$route.query
    // 公积金  1有 2无
    if (this.$route.params.reserveFund == 1) {
      this.form.reserveFund = '有公积金'
    } else {
      this.form.reserveFund = '无公积金'
    }
    // 社保  1有 2无
    if (this.$route.params.socialSecurity == 1) {
      this.form.socialSecurity = '有社保'
    } else {
      this.form.socialSecurity = '无社保'
    }
    //   weekendsClosed 单双休情况 1 双2单 3 大小
    if (this.$route.params.weekendsClosed == 1) {
      this.form.socialSecurity = '双休'
    } else if (this.$route.params.weekendsClosed == 2) {
      this.form.weekendsClosed = '单休'
    } else {
      this.form.weekendsClosed = '单双休'
    }
    //加班情况  overtimesSituation 1根据项目加班 2经常强制加班 3不加班
    //   weekendsClosed 单双休情况 1 双2单 3 大小
    if (this.$route.params.overtimesSituation == 1) {
      this.form.overtimesSituation = '根据项目加班'
    } else if (this.$route.params.overtimesSituation == 2) {
      this.form.overtimesSituation = '经常强制加班'
    } else {
      this.form.overtimesSituation = '不加班'
    }
    // 获取评论区
    this.datalist.companyId = this.form.companyId
    comreviews(this.datalist).then(res => {
      console.log(res)
      if (res.code === 2001) {
        this.loading = false
      }
      this.commentList = res.data.list
      this.total = res.data.total
      //处理数据
      this.commentList.forEach(item => {
        this.value = item.companyRating / 2
        item.companyRating = item.companyRating / 2
      })
      this.commentList.forEach(item => {
        switch (item.youWork) {
          case '1':
            item.youWork = 'java'
            break;
          case '2':
            item.youWork = 'web前端'
            break;
          case '3':
            item.youWork = 'C#'
            break;
          case '4':
            item.youWork = 'C++'
            break;
          case '5':
            item.youWork = 'Python'
            break;
          case '6':
            item.youWork = 'PHP'
            break;
          case '7':
            item.youWork = 'UI设计'
            break;
          case '8':
            item.youWork = '安卓开发'
            break;
          case '9':
            item.youWork = 'ios开发'
            break;
          case '10':
            item.youWork = '3D设计'
            break;
          case '11':
            item.youWork = '动画设计'
            break;
          case '12':
            item.youWork = '产品经理'
            break;
          case '13':
            item.youWork = '项目经理'
            break;
          case '14':
            item.youWork = '部门经理'
            break;
          case '15':
            item.youWork = '售前'
            break;
          case '16':
            item.youWork = '技术支持'
            break;
          default:
            return 0
        }
      })
    })
  },
  methods: {
    // 评论
    getPinglunlist() {

    },
    // 分页器
    handleSizeChange(val) {
      this.querya.pageNum = 1
      this.querya.pageSize = val
      // console.log( this.query.pageSize)
    },
    handleCurrentChange(val) {
      // console.log(val)
      this.querya.pageNum = val
      // console.log( this.query.pageNum)
    },
    // 添加评论
    async onSubmit() {
      if (!this.addList.detailedDescription) {
        this.$message({
          dangerouslyUseHTMLString: true,
          message: '<strong style="margin-right: 100px">评论或留言不能为空哦！</strong>',
          type: 'warning'
        });
        return;
      }
      comreviews(this.datalist).then(res => {
        this.commentList = res.data.list
        this.total = res.data.total
        //处理数据
        this.commentList.forEach(item => {
          this.value = item.companyRating / 2
          item.companyRating = item.companyRating / 2
        })
        this.commentList.forEach(item => {
          switch (item.youWork) {
            case '1':
              item.youWork = 'java'
              break;
            case '2':
              item.youWork = 'web前端'
              break;
            case '3':
              item.youWork = 'C#'
              break;
            case '4':
              item.youWork = 'C++'
              break;
            case '5':
              item.youWork = 'Python'
              break;
            case '6':
              item.youWork = 'PHP'
              break;
            case '7':
              item.youWork = 'UI设计'
              break;
            case '8':
              item.youWork = '安卓开发'
              break;
            case '9':
              item.youWork = 'ios开发'
              break;
            case '10':
              item.youWork = '3D设计'
              break;
            case '11':
              item.youWork = '动画设计'
              break;
            case '12':
              item.youWork = '产品经理'
              break;
            case '13':
              item.youWork = '项目经理'
              break;
            case '14':
              item.youWork = '部门经理'
              break;
            case '15':
              item.youWork = '售前'
              break;
            case '16':
              item.youWork = '技术支持'
              break;
            default:
              return 0
          }
        })
      })
      if (this.userCaptcha.toLowerCase() === this.captchaText.toLowerCase()) {
        localStorage.getItem('VUEX:STATE')
        // 添加
        this.addList.username = this.$store.state.registerList.username
        this.addList.userId = this.$store.state.registerList.userId
        this.addList.companyRating = this.addValue * 2
        this.addList.companyId = this.$route.query.companyId
        // 调用添加接口
        addpl(this.addList).then(res => {
          if (res.code === 2001) {
            this.$message({
              dangerouslyUseHTMLString: true,
              message: '<strong style="margin-right: 100px">评论成功！</strong>',
              type: 'success'
            });
          }
        })
        this.showMessage = true;
      } else {
        window.alert("验证码错误")
        this.showMessage = true;
      }
      // this.verifyCaptcha()
      // 修改bug
    },
    // 评论点赞

    async addComment(id, replyName) {
      let res = {};
      // 评论添加成功，返回的数据
      //本地更新评论列表
      if (replyName) {
        // 添加二级评论
        if (!this.replyContext) {
          this.$message.warning("评论或留言不能为空哦！");
          return;
        }
        // 模拟数据提交成功后返回数据
        res.data = {
          username: this.username,
          userId: this.userId,
          avatarUrl: this.avatarUrl,
          _id: "sec" + this.secIdx++, // 评论id
          replyName,
          date: "2022.09.01", //创建日期
          favour: [], //点赞的用户id
          content: this.replyContext //评论内容
        };
        const comment = this.comments.find(item => item._id == id);
        if (!comment.replyInfo) {
          comment.replyInfo = [];
        }
        comment.replyInfo.push(res.data);
        this.replyContext = "";
      } else {
        // 添加一级评论，提交数据到后端
        if (!this.context) {
          this.$message.warning("评论或留言不能为空哦！");
          return;
        }
        // 模拟数据提交成功后返回数据
        res.data = {
          username: this.username,
          avatarUrl: this.avatarUrl,
          userId: this.userId,
          _id: "first" + this.firstIdx++, // 评论id
          date: "2022.09.01", //创建日期
          articleId: this.articleId, // 评论的文章id
          favour: [], //点赞的用户id
          content: this.context //评论内容
        };
        this.comments.push(res.data);
        this.context = "";
      }
      this.isShowSec = this.isClickId = "";
    },
    // 验证码发布提交
    generateCaptcha() {
      const letters = '0123456789';
      let captcha = '';
      for (let i = 0; i < 4; i++) {
        captcha += letters.charAt(Math.floor(Math.random() * letters.length));
      }
      this.captchaText = captcha;
      const canvas = document.createElement('canvas');
      canvas.width = 150;
      canvas.height = 50;
      const ctx = canvas.getContext('2d');

      ctx.fillStyle = '#f0f0f0';
      ctx.fillRect(0, 0, canvas.width, canvas.height);

      ctx.font = '25px Arial';
      ctx.fillStyle = '#000';

      for (let i = 0; i < captcha.length; i++) {
        ctx.save();
        const rotate = Math.random() * 30 - 15;
        ctx.rotate((rotate * Math.PI) / 180);
        ctx.fillText(captcha[i], 20 + i * 25, 30);
        ctx.restore();
      }
      this.captchaImg = canvas.toDataURL();
    },
    refreshCaptcha() {
      this.generateCaptcha();
      this.userCaptcha = '';
      this.showMessage = false;
    },
    verifyCaptcha() {
      if (this.userCaptcha.toLowerCase() === this.captchaText.toLowerCase()) {
        this.message = '验证成功';
        this.showMessage = true;
      } else {
        window.alert("验证码错误")
        this.showMessage = true;
      }
    },
  }
}
</script>

<template>
  <div class="box">
    <headerPage style="background-color: #0454ac;"></headerPage>
    <srarchWindow></srarchWindow>
    <div class="cardBox">
      <el-card class="box-card" style="width: 80%" shadow="hover">
        <div slot="header" class="clearfix">
          <h2 style="margin: 0">企业详情：</h2>
        </div>
        <div class="text item">
          <!-- 第一行-->
          <div class="flexBox" style="margin-bottom: 20px">
            <el-col :span="8" style="width: 180px">
              {{ this.form.companyName }}
            </el-col>
            <el-col :span="8">
              <el-rate
                  :value="augValue"
                  show-score
                  disabled
                  text-color="#ff9900"
                  :max="5"
                  allow-half
                  :score-template="`${augValue*2}分`">
              </el-rate>
            </el-col>
          </div>
          <div class="tagBox">
            <el-tag size="small"> {{ this.form.weekendsClosed }}</el-tag>
            <el-tag type="success" size="small">{{ this.form.socialSecurity }}</el-tag>
            <el-tag type="info" size="small"> {{ this.form.overtimesSituation }}</el-tag>
            <el-tag type="warning" size="small"> {{ this.form.reserveFund }}</el-tag>
          </div>
        </div>
      </el-card>
    </div>
    <div class="main">
      <a-divider style="margin: 0"/>
    </div>
    <!-- 评论区-->
    <div class="commentBox">
      <div class="comment">
        <!--    <div class="comment-header">-->
        <!--      <el-tooltip class="item" effect="dark" content="点我更换头像" placement="top-start">-->
        <!--        <div @click="handleClick">-->
        <!--          <input type="file" style="display: none" @change="dealWithdAvatar" ref="avatar"/>-->
        <!--          <el-avatar-->
        <!--              :src="-->
        <!--              avatarUrl-->
        <!--                ? avatarUrl-->
        <!--                : 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'-->
        <!--            "-->
        <!--              :size="40"-->
        <!--          ></el-avatar>-->
        <!--        </div>-->
        <!--      </el-tooltip>-->
        <!--      <el-input-->
        <!--          :placeholder="placeholderText"-->
        <!--          v-model="context"-->
        <!--          class="input"-->
        <!--          type="textarea"-->
        <!--          resize="none"-->
        <!--          size="mini"-->
        <!--          :maxlength="contentLength"-->
        <!--          @focus="isShowSecReply(undefined)"-->
        <!--      ></el-input>-->
        <!--      <el-button-->
        <!--          type="info"-->
        <!--          style="height: 40px"-->
        <!--          @click="addComment(articleId, undefined)"-->
        <!--      >{{ buttonText }}-->
        <!--      </el-button>-->
        <!--    </div>-->
        <!--    <div class="comment-body" v-for="(item, index) in comments" :key="item._id + '' + index">-->
        <!--      &lt;!&ndash; 一级评论 &ndash;&gt;-->
        <!--      <div class="first-comment">-->
        <!--        <el-avatar :size="40" :src="item.avatarUrl"></el-avatar>-->
        <!--        <div class="content">-->
        <!--          &lt;!&ndash; 一级评论用户昵称 &ndash;&gt;-->
        <!--          <h3>{{ item.username }}</h3>-->
        <!--          &lt;!&ndash; 一级评论发布时间 &ndash;&gt;-->
        <!--          <span>{{ item.date }}</span>-->
        <!--          &lt;!&ndash; 一级评论评论内容 &ndash;&gt;-->
        <!--          <p>{{ item.content }}</p>-->
        <!--          &lt;!&ndash; 一级评论评论点赞 &ndash;&gt;-->
        <!--          <div class="comment-right">-->
        <!--            <i-->
        <!--                class="el-icon-trophy"-->
        <!--                @click="giveALike(item, item._id)"-->
        <!--                :class="item.favour.includes(userId) ? 'active' : ''"-->
        <!--            ></i>-->
        <!--            {{ item.favour.length || 0 }}-->
        <!--            <i-->
        <!--                class="el-icon-delete"-->
        <!--                @click="deleteComment(item._id, undefined)"-->
        <!--                v-if="userId === item.userId"-->
        <!--            >删除</i>-->
        <!--          </div>-->
        <!--        </div>-->
        <!--      </div>-->
        <!--    </div>-->
        <!--    &lt;!&ndash; 暂无评论的空状态 &ndash;&gt;-->
        <!--    <el-empty :description="emptyText" v-show="comments.length === 0"></el-empty>-->
        <!--手写静态-->
        <div>
          <!--存在评论时-->
          <div
              v-loading="loading">
            <!-- 评论基本盒子单个-->
            <div class="myflexBox cellBox myBox" v-for="item in commentList" :key="item.id">
              <!--左侧 登陆人 touxianhg 以及职位-->
              <div class="flexBoxleft" style="display: flex">
                <div class="iamgeUrl" style="margin-right: 0">
                  <el-avatar
                      :src="
                                avatarUrl
                                  ? avatarUrl
                                  : 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
                              "
                      :size="40"
                  ></el-avatar>
                </div>
                <div style="margin-left: 10px">
                  <div style="font-size: 18px">{{ item.userName }}</div>
                  <div>{{ item.youWork }}</div>
                </div>

              </div>
              <!-- 右侧 吐槽详情 评分 以及日期-->
              <div class="flexBoxright" style="overflow: hidden">
                <!-- 上-->
                <div class="contentRight">
                  <el-rate
                      :value="item.companyRating"
                      @input="(val)=>value=val"
                      show-score
                      disabled
                      text-color="#ff9900"
                      :max="5"
                      allow-half
                      :score-template="`${item.companyRating*2}分`">
                  </el-rate>
                </div>
                <!--中-->
                <div>
                  吐槽详情
                  <div style="min-height: 40px">
                    {{ item.detailedDescription }}
                  </div>
                  <!-- 下-->
                </div>
                <div>
                </div>
                <div style="overflow: hidden">
                  <div class="contentRight">
                    <div>{{ item.createTime }}</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!--评论b不存在时-->
          <div style="background-color: white">
            <el-empty v-show="this.commentList.length === 0"></el-empty>
          </div>
        </div>
        <!-- 分页器-->
        <div class="pageBox">
          <div class="block">
            <el-pagination @current-change="handleCurrentChange" background :current-page="querya.pageNum"
                           :pageSize="querya.pageSize" layout=" prev, pager, next" @size-change="handleSizeChange"
                           :total="(this.total) / 1">
            </el-pagination>
          </div>
        </div>
        <!--添加评论-->
        <div class="commentPost">
          <header>发表回复</header>
          <!--评论表单 添加-->
          <div>
            <el-form ref="form" :model="addList" label-width="100px">
              <el-form-item label="企业评分：">
                <el-rate
                    :value="addValue"
                    @input="(val)=>addValue=val"
                    show-score
                    text-color="#ff9900"
                    :max="5"
                    allow-half
                    :score-template="`${addValue*2}分`">
                </el-rate>
              </el-form-item>
              <!--职位选择-->
              <el-form-item label="曾任职位：">
                <el-select v-model="addList.youWork" placeholder="请选择曾任职位">
                  <el-option :label="item.zhiWeiName" :value="item.tbZhiweiId" v-for="item in zhiweiList"
                             :key="item.tbZhiweiId"></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="详情描述：">
                <el-input type="textarea" v-model="addList.detailedDescription"></el-input>
              </el-form-item>
              <el-form-item>
                <div class="yanzhnegBox">
                  <img :src="captchaImg" @click="refreshCaptcha" alt=""/>
                  <input placeholder="请输入验证码" style="border: 1px solid; margin: 0 10px" type="text"
                         v-model="userCaptcha"/>
                  <!--                  <button style="width: 100px">验证</button>-->
                </div>
                <p v-if="showMessage">{{ message }}</p>
              </el-form-item>
              <el-form-item>
                <el-button type="primary" @click="onSubmit">发表</el-button>
              </el-form-item>
              <!--验证码 发布-->
            </el-form>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
::v-deep .el-textarea {
  width: 600px;
}

.yanzhnegBox {
  img {
    width: 150px;
    height: 50px;
  }
}

.pageBox {
  width: 1280px;
  margin: auto;
  display: flex;
  background-color: white;
}

.contentRight {
  float: right;
}

.commentPost {
  margin-top: 10px;
  background-color: white;

  header {
    border-right: 1px solid;
    border-color: #dcdfe6;
    padding: 10px;
  }
}

.cellBox {
  background-color: white;
  height: 100px;
  border-bottom: 1px solid;
  border-color: #dcdfe6;
}

.comment {
  .myflexBox {
    display: flex;

    .flexBoxleft {
      border-right: 1px solid;
      border-color: #dcdfe6;
      text-align: center;
      width: 20%;
      padding: 10px;
      padding-top: 30px;
    }

    .flexBoxright {
      width: 80%;
      padding: 10px;
    }
  }

  width: 1220px;
  min-height: 26vh;
  border-radius: 5px;
  margin-top: 2px;
  overflow: hidden;

  .active {
    color: rgb(202, 4, 4);
  }

  .comment-header {
    position: relative;
    height: 50px;
    padding: 10px 5px;
    display: flex;
    align-items: center;

    .input {
      margin-left: 10px;
      margin-right: 20px;

      ::v-deep .el-input__inner:focus {
        border-color: #dcdfe6;
      }
    }
  }

  .comment-body {
    min-height: 70px;
    padding: 10px 20px;
    font-size: 14px;

    .first-comment {
      display: flex;

      .input {
        ::v-deep .el-input__inner:focus {
          border-color: #dcdfe6;
        }
      }

      i {
        margin-right: 5px;
        margin-left: 1vw;
        cursor: pointer;

        &:nth-child(3) {
          color: rgb(202, 4, 4);
        }
      }

      .content {
        margin-left: 10px;
        position: relative;
        flex: 1;

        & > span {
          font-size: 12px;
          color: rgb(130, 129, 129);
        }

        .comment-right {
          position: absolute;
          right: 0;
          top: 0;
        }

        .reply-comment {
          height: 60px;
          display: flex;
          align-items: center;

          .reply-button {
            margin-left: 20px;
            height: 35px;
          }
        }

        .second-comment {
          display: flex;
          padding: 10px 0 10px 5px;
          border-radius: 20px;
          background: #ffffff;

          .to_reply {
            color: rgb(126, 127, 128);
          }
        }
      }
    }
  }
}

.el-tag {
  margin-right: 10px;
}

.comment {
  min-height: 26vh;
  border-radius: 5px;
  margin-top: 2px;
  overflow: hidden;

  .active {
    color: rgb(202, 4, 4);
  }

  .comment-header {
    position: relative;
    height: 50px;
    padding: 10px 5px;
    display: flex;
    align-items: center;

    .input {
      margin-left: 10px;
      margin-right: 20px;

      ::v-deep .el-input__inner:focus {
        border-color: #dcdfe6;
      }
    }
  }

  .comment-body {
    min-height: 70px;
    padding: 10px 20px;
    font-size: 14px;

    .first-comment {
      display: flex;

      .input {
        ::v-deep .el-input__inner:focus {
          border-color: #dcdfe6;
        }
      }

      i {
        margin-right: 5px;
        margin-left: 1vw;
        cursor: pointer;

        &:nth-child(3) {
          color: rgb(202, 4, 4);
        }
      }

      .content {
        margin-left: 10px;
        position: relative;
        flex: 1;

        & > span {
          font-size: 12px;
          color: rgb(130, 129, 129);
        }

        .comment-right {
          position: absolute;
          right: 0;
          top: 0;
        }

        .reply-comment {
          height: 60px;
          display: flex;
          align-items: center;

          .reply-button {
            margin-left: 20px;
            height: 35px;
          }
        }

        .second-comment {
          display: flex;
          padding: 10px 0 10px 5px;
          border-radius: 20px;
          background: #ffffff;

          .to_reply {
            color: rgb(126, 127, 128);
          }
        }
      }
    }
  }
}

.tagBox {
  ::v-deep .el-tag--dark {
    margin-right: 10px;
  }
}

::v-deep .el-rate {
  line-height: 2;
}

.cardBox {
  margin-top: 10px;
}

.myflexBox {
  display: flex;

}

.flexBox {
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  color: #999999;
}

.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both
}

.box-card {
  width: 480px;
}

.main {
  margin-top: 10px;
  width: 80%;
}

.box {
  background-color: whitesmoke;
  margin: 0 auto;
}

.radios {
  border-radius: 10px;
}

.whiteBox {
  padding: 10px;
  background-color: white;
}

header {
  .title {
    font-size: 20px;
  }
}

.box {
  background-color: whitesmoke;
  margin: 0 auto;
}

.paddingBox {
  padding: 10px;
}
</style>
